/*
 * @Description: 数据库模型
 * @Version: 1.0
 * @Autor: JiaJun Wu
 * @Date: 2021-09-14 14:22:02
 * @LastEditors: JiaJun Wu
 * @LastEditTime: 2021-09-23 17:03:50
 */
 use rocket::serde::Deserialize;

 #[derive(Debug, Deserialize, Default, Clone)]
 #[serde(crate = "rocket::serde")]
 pub struct DataBase {
     pub mbp: MongoDB,
 }
 
 #[derive(Debug, Deserialize, Default, Clone)]
 #[serde(crate = "rocket::serde")]
 pub struct MongoDB {
     /// 数据库连接名称
     pub name: String,
     /// 数据库ip
     pub host: String,
     /// 数据库用户名
     pub username: String,
     /// 数据库密码
     pub password: String,
     /// 数据库端口
     pub port: u16,
     /// 数据库类型
     pub data_base_type: String,
 }
 